package com.star.carservice.client.utils;

import java.text.NumberFormat;
import java.util.Locale;

public class FormatUtils {

	public static String formatPrice(float price) {
		NumberFormat currency = NumberFormat.getCurrencyInstance(Locale.CHINA);

		currency.setMinimumFractionDigits(0);

		return currency.format(price).replaceFirst("￥", "");
	}
}
